import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import "@/mock";

import Validate from "@/main/validate";
import elementUI from "@/main/elementUl";
import lazyLoad from "@/main/lazyLoad";
import components from "@/main/components";

Vue.use(Validate);
Vue.use(elementUI);
Vue.use(lazyLoad);
Vue.use(components);

Vue.config.productionTip = false;

new Vue({
  render: h => h(App),
  router,
  store,
  beforeCreate() {
    Vue.prototype.$bus = this;

  },


}).$mount('#app');
